#!/usr/bin/env python

import os

from setuptools import find_packages, setup

# Prepare long description using existing docs
long_description = ""
this_dir = os.path.abspath(os.path.dirname(__file__))
doc_files = ["README.md"]
for doc in doc_files:
    with open(os.path.join(this_dir, doc), "r") as f:
        long_description = "\n".join([long_description, f.read()])

setup(
    name="driving-gym",
    version="0.1.0",
    description="A Gym(nasium) environment for (MA)RL autonomous driving",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/Morphlng/DrivingGym",
    author="Morphlng",
    author_email="morphlng@proton.me",
    packages=find_packages("src"),
    package_dir={"": "src"},
    python_requires=">=3.7",
    install_requires=[
        "carla",
        "gymnasium",
        "networkx",
        "numpy",
        "opencv-python",
        "pandas",
        "pygame",
        "shapely",
        "typing_extensions",
    ],
    extras_require={
        "test": ["pytest", "pytest-cov"],
    },
    keywords="gym, carla, autonomous driving, reinforcement learning, multi-agent",
    project_urls={
        "Source": "https://github.com/Morphlng/DrivingGym",
        "Report bug": "https://github.com/Morphlng/DrivingGym/issues",
        "Author website": "https://github.com/Morphlng",
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "License :: OSI Approved :: MIT License",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
    ],
)
